<?php
class Controller{
    protected $s;
    public function __construct(){
        $this->s = new Smarty();
    }

    public function display($tpl=''){
    	if($tpl==''){
    		$tpl='./app/'.MODEL.'/View/'.CONTROLLER.'/'.ACTION.'.html';
    	}else{
    		$tpl='./app/'.MODEL.'/View/'.CONTROLLER.'/'.$tpl.'.html';
    	}
    	$this->s->display($tpl);
    }

    public function assign($key,$value){
    	$this->s->assign($key,$value);
    } 
}
?>